# -*- coding: utf-8 -*-

from urllib.request import urlopen
from bs4 import BeautifulSoup

html = urlopen('http://www.pythonscraping.com/pages/warandpeace.html')
bs_obj = BeautifulSoup(html, 'html.parser')
all_text = bs_obj.findAll(id='text')

print(all_text[0].get_text())
